import java.util.List;
import java.util.Random;

public class Solution {

    private int[] nums;
    public Solution(int[] nums) {
        this.nums=nums;

    }

    public int[] reset() {
        return this.nums;
    }

    public int[] shuffle() {
        int lenght=this.nums.length;
        int[] newNums=new int[lenght];
        Random random = new Random();
        for (int i = 0; i < nums.length; ++i) {
            int j = i + random.nextInt(nums.length - i);
           newNums[i]=nums[j];
        }
        return newNums;
    }
}
